<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改AI模型训练分类')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-ClassifyService-edit" th:object="${aiIdentifyModelClassifyT}">
            <input name="classifyUuid" th:field="*{classifyUuid}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label">模型名称：</label>
                <div class="col-sm-8">
                    <!--                    <input name="modelName" th:field="*{modelName}" class="form-control" type="text">-->
                    <input list="browsers">

                    <datalist id="browsers">
                        <option value="人">
                        <option value="安全帽">
                        <option value="可疑车辆">
                        <option value="主煤流检测">
                            <!--                        <option value="Safari">-->
                    </datalist>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">模型ID：</label>
                <div class="col-sm-8">
                    <input name="modelId" th:field="*{modelId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">版本号：</label>
                <div class="col-sm-8">
                    <input name="version" th:field="*{version}" class="form-control" type="text"  required>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">训练数据集：</label>
                <div class="col-sm-8">
                    <!--                    <input name="version" th:field="*{version}" class="form-control" type="text">-->
                    <input name="1" class="form-control" type="text" >
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">验证数据集：</label>
                <div class="col-sm-8">
                    <!--                    <input name="version" th:field="*{version}" class="form-control" type="text">-->
                    <input list="browsers1">
                    <datalist id="browsers1">
                        <option value="人">
                        <option value="安全帽">
                        <option value="可疑车辆">
                        <option value="主煤流检测">
                            <!--                        <option value="Safari">-->
                    </datalist>
                    <!--                    <input name="2" class="form-control" type="text" >-->
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">训练准确度：</label>
                <div class="col-sm-8">
                    <input name="trainingAccuracy" th:field="*{trainingAccuracy}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">模型备注：</label>
                <div class="col-sm-8">
                    <!--                    <input name="version" th:field="*{version}" class="form-control" type="text">-->
                    <!--                    <input name="1" class="form-control" type="text" >-->
                    <textarea rows="10" cols="30">

</textarea>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "AI/ClassifyService";
        $("#form-ClassifyService-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-ClassifyService-edit').serialize());
            }
        }

        $("input[name='classifyTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>